package edu.sctu.zhuyingzhi.month201506.day20150612;


import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * Created by user13 on 2015/6/12.
 */
public class Test {

    public static void main(String[] args) {
        HashMap<String,Integer> map = new HashMap<String,Integer>();

        map.put("haha",1);
        map.put("haha2",2);
        map.put("haha3",3);
        map.put("hehe1",4);
        map.put("hehe2",5);
        Iterator iterator = map.entrySet().iterator();
        while(iterator.hasNext()){
            Map.Entry entry = (Map.Entry) iterator.next();
            System.out.println(entry.getKey()+"  "+entry.getValue());

        }
    }
}
